<?php
/**
* @software         [JiJinCMS]
* @author           [上海集锦信息科技有限公司]
* @website          [http://www.jijinweb.com]
* @email            [sunny@jijinweb.com]
**/
namespace app\admin\validate;
use think\validate;
use think\facade\Db;
use think\facade\Request;
class TemplateValidate extends validate{
    public $rule = [
        'name'  => ['require'],
        'type'  => ['require'],
        'content'  => ['require'],
    ];
    protected $message = [
        'name.require'=>'请填写模板名称',
        'type.require'=>'未知的模板类型',
        'content.require'=>'请填写模板内容',
        'myvar.unique'=>'变量名已存在',
    ];
}

